
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type MessageSystemRequest struct {

	Mark string `json:"mark" form:"mark"`

	Uid string `json:"uid" form:"uid"`

	Title string `json:"title" form:"title"`

	Content string `json:"content" form:"content"`

	Data string `json:"data" form:"data"`

	Look string `json:"look" form:"look"`

	Type string `json:"type" form:"type"`

	AddTime string `json:"add_time" form:"add_time"`

	IsDel string `json:"is_del" form:"is_del"`

}

func (r *MessageSystemRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *MessageSystemRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"mark": "required",

		"uid": "required",

		"title": "required",

		"content": "required",

		"data": "required",

		"look": "required",

		"type": "required",

		"add_time": "required",

		"is_del": "required",

	}
}

func (r *MessageSystemRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *MessageSystemRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *MessageSystemRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
